package com.fjec.devops.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.common.protocol.JsonResult;
import com.fjec.devops.entity.BizYsOfflineReg;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 023.银盛线下进件表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-11-23
 */
public interface IBizYsOfflineRegService extends IService<BizYsOfflineReg> {

    /**
     * 查询这一天文件是否已生成
     *
     * @param date
     * @return
     */
    boolean dateIsHandled(LocalDate date);

    /**
     * 上传excel
     *
     * @param date
     * @param dateTime
     * @param dataList
     * @return
     */
    void uploadExcels(LocalDate date, String dateTime, List<Map<String, Object>> dataList) throws Exception;

    /**
     * 分页查询银盛线下进件信息
     *
     * @param page
     * @return
     * @throws Exception
     */
    JsonResult getEntityListPage(Page page) throws Exception;

    /**
     *
     * @param id
     * @param downloadId
     * @param res
     * @throws Exception
     */
    void downloadYsOfflineExcel(Long id, Long downloadId, Integer type, HttpServletResponse res) throws Exception;
}
